import matplotlib.pyplot as plt
import numpy as np

plt.rcParams['font.sans-serif'] = ['SimHei']
plt.rcParams['axes.unicode_minus'] = False

categories = ['A', 'B', 'C', 'D', 'E']
y1 = [25, 40, 30, 55, 15]

plt.figure(figsize=(10, 6))
plt.barh(categories, y1, color='blue')
plt.title('堆叠柱状图')
plt.xlabel('类别')
plt.ylabel('数值')
plt.show()
